/*
 * packetfactory.h
 *
 *  Created on: 2016-3-19
 *      Author: ZhangXiyin
 */

#ifndef EYAS_SOURCES_IO_BASE_PACKETFACTORY_H_
#define EYAS_SOURCES_IO_BASE_PACKETFACTORY_H_

#include "../conf/def.h"

namespace eyas {
namespace io {

class packet_factory_base{
public:
	packet_factory_base(){}
	virtual ~packet_factory_base(){}

public:
	/**
	 * 创建解析器
	 */
	virtual packet_decoder_ptr create_packet_decoder() = 0;
	/**
	 * 创建封装器
	 */
	virtual packet_encoder_ptr create_packet_encoder() = 0;
};

} /* namespace thread */
} /* namespace eyas */
#endif /* EYAS_SOURCES_IO_BASE_PACKETFACTORY_H_ */
